package day06.Lx;

import java.util.Scanner;

public class Lian11 {
    public static void main(String[] args) {
        try {
            Scanner sc=new Scanner(System.in);
            System.out.println("请输入");
            String s=sc.next();
            int age = Integer.parseInt(s);
            System.out.println(age);
            System.out.println(2/0);
        } catch (NumberFormatException e) {
            System.out.println("年龄异常");
        }catch (ArithmeticException e){
            System.out.println("异常");
        }
    }
}
